﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="UploadPicControl.ascx.vb"
    Inherits="WebForm_CommonControl_UploadPicControl" %>

<script src="/VMS/js/JScript.js" type="text/javascript"></script>

<asp:FileUpload ID="hiFileUpload" runat="server" Width="70%" />
<asp:Button ID="Button1" runat="server" Text="<%$ Resources:Add %>" />
<asp:FormView ID="FormView1" runat="server">
    <ItemTemplate>
        <asp:Image ID="Image1" runat="server" 
            ImageUrl='<%# Bind("FilePathName") %>' Height="400px" Width="400px" />
    </ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
    InsertMethod="BLL_Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="BLL_Select"
    TypeName="BLL_Sys_UpLoadFiles">
    <SelectParameters>
        <asp:Parameter Name="FileSaveName" Type="String" />
    </SelectParameters>
    <InsertParameters>
        <asp:Parameter Name="theClass" Type="String" />
        <asp:Parameter Name="theType" Type="String" />
        <asp:Parameter Name="FileName" Type="String" />
        <asp:Parameter Name="FileShortName" Type="String" />
        <asp:Parameter Name="FileType" Type="String" />
        <asp:Parameter Name="FileSavePath" Type="String" />
        <asp:Parameter Name="FileSaveName" DbType="Guid" />
        <asp:Parameter Name="FileDesc" Type="String" />
        <asp:Parameter Name="CreateBy" Type="String" />
    </InsertParameters>
</asp:ObjectDataSource>
